package es.ats.codington.festival.utils;

import java.sql.Connection;
import java.sql.DriverManager;

public class ImageDataConnection {
	static Connection conn;
		
		public static Connection getConnection(){
			
			try{
				String url = "jdbc:mysql://localhost/dbimage";
				String user = "root";
				String pass = "abcd1234";
				
				Class.forName("com.mysql.jdbc.Driver");
				
				conn = DriverManager.getConnection(url, user, pass);
				
			}
			catch (Exception e){
				System.out.println(e.getMessage());
			}
			return conn;
		}
}
